package test;

import java.io.File;

import org.apache.log4j.Logger;

import util.Conts;

/**
 * @author suwy
 * @date 2013-8-2
 * @todo TODO
 */
public class CountFileInFolder {
	
	private static Logger LOG = Logger.getLogger(CountFileInFolder.class);
	private static String fileName = "药品经营企业";//124695 
	private static String filePath = Conts.HTM_ROOT_PATH+fileName+"/";

	private void countFiles() {
		int count = 0;
		for(File file : new File(filePath).listFiles()) {
			if(file.isFile()) {
				++count;
			}
		}
		LOG.info(count);
	}
	
	public static void main(String[] args) {
		CountFileInFolder instance = new CountFileInFolder();
		instance.countFiles();
	}

}
